package com.openfeint.actionCollection;

import android.util.Log;

import com.openfeint.actionCollection.DataFileManager;
import com.openfeint.internal.request.BaseRequest;

import com.openfeint.internal.request.OrderedArgList;

public class ActionRequest extends BaseRequest implements Symbol{
final String path = "/recorder/save.json";
final String TAG="request";
	public ActionRequest(OrderedArgList args){
		super(args);
	}
	
	@Override
	public String method() {
		// TODO Auto-generated method stub
		 return "POST";
	}

	@Override
	public String path() {
		// TODO Auto-generated method stub
		return path;
	}

	@Override
	public void onResponse(int responseCode, byte[] body) {
		// TODO Auto-generated method stub
		if(responseCode==200){
			DataFileManager.onResponseSucceed();
		}
		if(test){ Log.e(TAG, new String (body));};
	}

}
